<?php

namespace App\Events\Attendance;

use App\Models\Attendance;
use Illuminate\Queue\SerializesModels;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;

/**
 * 创建考勤数据时触发事件
 *
 * Date: 09/05/2018
 * @author George
 * @package App\Events\Attendance
 */
class CreatedEvent
{
    use Dispatchable, InteractsWithSockets, SerializesModels;

    public $attendance;

	/**
	 * CreatedEvent constructor.
	 * @param Attendance $attendance
	 */
    public function __construct(Attendance $attendance)
    {
    	$this->attendance = $attendance;
    }
}
